home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / i_am_leg.swf / scripts / DefineButton2_756 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2010-04-12  |  973 b   |  43 lines

  1. on(release){
  2.    _root.remove_bg();
  3.    _root.player.swapDepths(_root.player.depth);
  4.    var a = enemyactive - 100;
  5.    while(a < enemyactive + 1)
  6.    {
  7.       _root["enemy" + a].removeMovieClip();
  8.       _root["boss_mc" + a].removeMovieClip();
  9.       a++;
  10.    }
  11.    var a = ammoactive - 100;
  12.    while(a < ammoactive + 1)
  13.    {
  14.       _root["ammo" + a].removeMovieClip();
  15.       a++;
  16.    }
  17.    var a = ammoactive - 100;
  18.    while(a < ammoactive + 1)
  19.    {
  20.       _root["weili_mc" + a].removeMovieClip();
  21.       a++;
  22.    }
  23.    var a = lifeactive - 100;
  24.    while(a < lifeactive + 1)
  25.    {
  26.       _root["add_life" + a].removeMovieClip();
  27.       a++;
  28.    }
  29.    var a = _root.ammoactive - 100;
  30.    while(a < _root.ammoactive + 1)
  31.    {
  32.       _root["hanbao_mc" + a].removeMovieClip();
  33.       a++;
  34.    }
  35.    var a = _root.ammoactive - 100;
  36.    while(a < _root.ammoactive + 1)
  37.    {
  38.       _root["shengdai_mc" + a].removeMovieClip();
  39.       a++;
  40.    }
  41.    gotoAndStop(408);
  42. }
  43.